package com.petshop.utils;

import com.petshop.pojo.Users;

public class UserHolder {
    private static final ThreadLocal<Users> tl = new ThreadLocal<>();

    public static Users getUser() {
        return tl.get();
    }

    public static void setUser(Users user) {
        tl.set(user);
    }

    public static void removerUser() {
        tl.remove();
    }
}
